from pyhildonmemer.ui import *

class Application(App):
    def __init__(self, title, onClose = None, tabs = None):
        super(Application, self).__init__(
            title = title,
            center = (
                Tabs("tabs", children = tabs)
            )
        )

    def show(self, onClose = None):
        run()
    
    def addTab(self, tab):
        pass
    

class Dashboard(Tabs.Page):
    def __init__(self, app = None):
        self.app = app
        super(Dashboard, self).__init__(
            id = "home",
            label = "Dashboard",
            children = (Dashboard()),
            callback = self.onShow
        )

    def onShow():
        pass

class Friends(Tabs.Page):
    pass

class Post(Tabs.Page):
    pass


class Config(Tabs.Page):
    def __init__(self, parent = None):
        self.instance = hildon.AppMenu()
        if not parent == None:
            parent.add(self.instance)
        super(Config, self).__init__(self.instance)

    def onUpdateRefreshTime(self, onUpdate):
        pass

    def updateServicesList(self, services, configuredServices, onToggleService):
        pass

    def show(self, onClose):
        pass

class Post(Group):
    def __init__(self, post):
        self.post = post

class PostProfile(Group):
    def __init__(self, profile):
        self.profile = profile

if __name__ == "__main__":
    testApp = Application("HildonMemer")
    testApp.show()